//package net.xdclass.service.impl;
//
//import com.aliyuncs.DefaultAcsClient;
//import com.aliyuncs.IAcsClient;
//import com.aliyuncs.profile.DefaultProfile;
//import lombok.extern.slf4j.Slf4j;
//import net.xdclass.service.MsmService;
//import org.springframework.stereotype.Service;
//
///**
// * @author zhaowei
// * @Description TODO
// * @Remark 有问题直接联系我
// * @Version 1.0
// **/
//
//@Service
//@Slf4j
//public class MsmServiceImpl  implements MsmService {
//
//    /**
//     * 发送短信验证码
//     * @param phone 手机号
//     * @param code 被发送的验证码
//     * @return
//     */
//    @Override
//    public String sendCodeMsg(String phone, String code) {
//        String checkCode="";
//        DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "LTAI5tDfHQPQ5WA5dBkrfFxu", "eRID7ZigveAH7fMRKbCDq92jjRl68R");
//
//
//        IAcsClient client = new DefaultAcsClient(profile);
//
////        SendSmsRequest request = new SendSmsRequest();
////        request.setSignName("阿里云短信测试");
////        request.setTemplateCode("SMS_154950909");
////        request.setPhoneNumbers(phone);
////        request.setTemplateParam("{\"code\":\""+code+"\"}");
////
////        try {
////            SendSmsResponse response = client.getAcsResponse(request);
////            checkCode = response.getCode();
////        } catch (ServerException e) {
////            e.printStackTrace();
////        } catch (ClientException e) {
////            System.out.println("ErrCode:" + e.getErrCode());
////            System.out.println("ErrMsg:" + e.getErrMsg());
////            System.out.println("RequestId:" + e.getRequestId());
////        }
//        return checkCode;
//    }
//
//
//}
